package org.monkey.config.client.application;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = "org.monkey.config.client")
@EnableEurekaClient
@EnableDiscoveryClient
@RefreshScope
public class ConfigClientApplication {

  private static final Logger logger = LoggerFactory.getLogger(ConfigClientApplication.class);

  public static void main(String[] args) {

    SpringApplication.run(ConfigClientApplication.class, args);

    logger.info("********  config client start  ********");
  }
}
